home *** CD-ROM | disk | FTP | other *** search
-
-
-
- CCCCOOOOCCCCOOOOSSSSTTTTIIIIFFFFFFFF((((1111)))) CCCCMMMMSSSS CCCCOOOOCCCCOOOOSSSSTTTTIIIIFFFFFFFF((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- cocostiff - color correct a TIFF stream
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _cccc_oooo_cccc_oooo_ssss_tttt_iiii_ffff_ffff [ _----_aaaa _s_o_u_r_c_e__p_r_o_f_i_l_e | _----_ssss _s_o_u_r_c_e__p_r_o_f_i_l_e ] _----_dddd _d_e_s_t_i_n_a_t_i_o_n__p_r_o_f_i_l_e
- [ _----_hhhh ] [ _----_oooo _o_u_t_p_u_t__f_i_l_e ] [ _i_n_p_u_t__f_i_l_e ]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _c_o_c_o_s_t_i_f_f uses the International Color Consortium (ICC) profiles to
- determine how to perform the appropriate color management operation
- ("color correction", hence "coco") upon a TIFF stream. The operation will
- be a color space conversion from the input device color space to the
- output device color space.
-
- A TIFF stream is a TIFF image file in the Streamable TIFF (STIFF) format.
- STIFF files are directly created by Impressario products, such as _gggg_ssss_cccc_aaaa_nnnn.
- Regular TIFF image files can by turned into STIFF files by running
- _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_pppp_rrrr_iiii_nnnn_tttt_////_iiii_llll_2222_ssss_tttt_iiii_ffff_ffff.
-
- The device color space associated with the input stream is determined in
- one of four ways. The following approaches are tried in order:
-
- +o First, if the _----_ssss flag is set, the specified _s_r_c-_p_r_o_f_i_l_e will be
- used. Specifying _----_ssss will override any profile embedded in the
- source image.
-
- +o Second, if there is an ICC profile embedded in the source image,
- that will be used.
-
- +o Third, if the _----_aaaa flag is set, the specified _s_r_c__p_r_o_f_i_l_e will be
- used. Embedded profiles take precedence over profiles specified
- with _----_aaaa.
-
- +o Finally, the color management system's default monitor or CMYK
- profile will be used. Which profile, monitor or CMYK, is selected
- will be determined by the number of color channels in the input
- image. If there are three channels, the monitor profile,
- _mmmm_oooo_nnnn_iiii_tttt_oooo_rrrr_...._pppp_ffff, is selected; if there are four, the CMYK profile,
- _gggg_eeee_nnnn_cccc_mmmm_yyyy_kkkk_...._pppp_ffff.
-
- If no default is set, the system searches through _CCCC_MMMM_SSSS______PPPP_RRRR_OOOO_FFFF_IIII_LLLL_EEEE______PPPP_AAAA_TTTT_HHHH for
- the default monitor profile, _mmmm_oooo_nnnn_iiii_tttt_oooo_rrrr_...._pppp_ffff. If that profile is not found,
- _cccc_oooo_cccc_oooo_ssss_tttt_iiii_ffff_ffff has no way to determine a source device profile and so passes
- the input image stream through unchanged.
-
- The output device color space is determined quite simply from the value
- of the _----_dddd flag.
-
- If a full path is not provided for a device profile, the system looks
- through the directories specified in _CCCC_MMMM_SSSS______PPPP_RRRR_OOOO_FFFF_IIII_LLLL_EEEE______PPPP_AAAA_TTTT_HHHH.
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- CCCCOOOOCCCCOOOOSSSSTTTTIIIIFFFFFFFF((((1111)))) CCCCMMMMSSSS CCCCOOOOCCCCOOOOSSSSTTTTIIIIFFFFFFFF((((1111))))
-
-
-
- If, for any reason _cccc_oooo_cccc_oooo_ssss_tttt_iiii_ffff_ffff is unable to perform the requested
- conversion, the source stream is copied to the destination stream. Some
- of the reasons that a conversion might not be performed are:
-
- +o no destination profile was specified;
-
- +o the number of channels in the input or output stream does not match
- its profile;
-
- +o one of the specified profiles could not be found;
-
- +o one of the specified profiles could not be read;
-
- +o the source image is one bit deep;
-
- +o the CMS did not know how to handle one of the profiles;
-
- +o the CMS needed to read the system RGB or system CMYK profile and
- could not.
-
- CCCCoooommmmmmmmaaaannnndddd LLLLiiiinnnneeee OOOOppppttttiiiioooonnnnssss
- _c_o_c_o_s_t_i_f_f supports the following command line options:
-
- _----_aaaa _s_o_u_r_c_e__p_r_o_f_i_l_e
- Specifies a profile to be used with images that do not have an
- embedded ICC profile.
-
- _----_dddd _d_e_s_t_i_n_a_t_i_o_n__p_r_o_f_i_l_e
- Specifies a profile for the destination device. The destination
- image file format, including the depth and number of channels,
- will be determined by this profile. _----_hhhh Display a usage
- message.
-
- _----_oooo _o_u_t_p_u_t__f_i_l_e
- The output TIFF file. If this is not supplied, _cccc_oooo_cccc_oooo_ssss_tttt_iiii_ffff_ffff will
- write to standard out.
-
- _----_ssss _s_o_u_r_c_e__p_r_o_f_i_l_e
- The profile for the source device. This will override any
- profile embedded in the image. If this profile does not match
- up with the source stream/source file image file format,
- _cccc_oooo_cccc_oooo_ssss_tttt_iiii_ffff_ffff will pass the source through unchanged.
-
- _i_n_p_u_t__f_i_l_e
- The input TIFF file. If this is not supplied, _cccc_oooo_cccc_oooo_ssss_tttt_iiii_ffff_ffff will
- read from standard in.
-
-
- EEEERRRRRRRROOOORRRRSSSS
- Because _cccc_oooo_cccc_oooo_ssss_tttt_iiii_ffff_ffff is a filter, it tries to produce valid output if at all
- possible. However, there are conditions under which _cccc_oooo_cccc_oooo_ssss_tttt_iiii_ffff_ffff will exit
- with an error condition. These are:
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- CCCCOOOOCCCCOOOOSSSSTTTTIIIIFFFFFFFF((((1111)))) CCCCMMMMSSSS CCCCOOOOCCCCOOOOSSSSTTTTIIIIFFFFFFFF((((1111))))
-
-
-
- +o a source file was specified, but could not be opened;
-
- +o a destination file was specified, but could not be opened;
-
- +o an unrecoverable system error.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _v_s_t_i_f_f(1), _l_i_b_s_t_i_f_f(3).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-